package com.google.code.p.restrpc;

/**
 * @author dz
 */
public interface RpcResponse {
    
    /**
     * @return the result object which can cast to corresponding type.
     */
    public Object getResult();
    
    /**
     * @return true if no biz exception or http exception
     */
    public boolean isSucceed();
    
    /**
     * @return the failure detail if any exception found
     */
    public RpcFault getFault();
    
}
